package com.zimmur.app.mocolink.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zimmur.app.mocolink.dao.StorageFilesMapper;
import com.zimmur.app.mocolink.domain.model.StorageFiles;
import com.zimmur.app.mocolink.service.IStorageFilesService;

@Service
public class StorageFilesServiceImpl implements IStorageFilesService{

	@Autowired
	private StorageFilesMapper storageFilesMapper;
	
	@Override
	public boolean add(StorageFiles file) {
		return storageFilesMapper.insertSelective(file)>0;
	}

	@Override
	public StorageFiles selectByFileId(int fileId) {
		return storageFilesMapper.selectByPrimaryKey(fileId);
	}

}
